import request from 'utils/request'
import { Logintype } from 'api/contents/index'
/**
 * 登录
 * @param data {object}
 * @returns
 */
export const login = (data: Logintype) => {
  return request({
    url: '/v1_0/authorizations',
    method: 'POST',
    data,
  })
}
/**
 * 获取个人资料
 * @returns
 */
export const getUserInfo = () => {
  return request({
    url: '/v1_0/user/profile',
  })
}
